(function() { 
cordova.define('sc/env', function(require, exports, module) { 
 
	var env = { 
		getDeviceId : function(success, failure) { 
			success (setting.env.deviceId); 
         },
         
         setDeviceId : function(success, failure) {
             var args = Array.prototype.slice.call(arguments, 2);
             setting.env.deviceId = args[0];
             success("ok");
         },
         getConfigurations : function(success, failure) {
            success(setting.server);
         }
 }; 
 module.exports = env; 
}); 
 
cordova.define('sc', function(require, exports, module) { 
	
 	var sc = { 
		env : require('sc/env'), 
		device : require('sc/device')
	};
 	
	module.exports = sc;
	
}); 



cordova.define('sc/device', function(require, exports, module) {

    var device = {
        ApplicationStatus : {
            INSTALLED : 'installed',
            NOT_INSTALLED : 'notInstalled',
            INSTALLED_FOR_OTHER_USER : 'installedForOtherUser',
            STOPPED : 'stopped'
        },
        ApplicationType : {
            SYSTEM : 'system',
            UPDATED_SYSTEM : 'updatedSystem',
            THIRD_PARTY : 'thirdParty'
        },

//        getDeviceUniqueId : function(success, failure) {
//            cordova.exec(success, failure, "sc.device", "getDeviceUniqueId", []);
//        },
//        getDeviceInformation : function(success, failure) {
//            cordova.exec(success, failure, "sc.device", "getDeviceInformation", []);
//        },
        getPlatformInfo : function(success, failure) {
           success (platform);
        },
//        checkGenuineness : function(success, failure) {
//            cordova.exec(success, failure, "sc.device", "checkGenuineness", []);
//        },
//        getPhoneInfo : function(success, failure) {
//            cordova.exec(success, failure, "sc.device", "getPhoneInfo", []);
//        },
//        getNetworkInfo : function(success, failure) {
//            cordova.exec(success, failure, "sc.device", "getNetworkInfo", []);
//        },
//        getApplicationInfo : function(success, failure, ids) {
//            cordova.exec(success, failure, "sc.device", "getApplicationInfo", [ids]);
//        },
//        getInstalledApplications : function(success, failure) {
//            var args = Array.prototype.slice.call(arguments, 2);
//            cordova.exec(success, failure, "sc.device", "getInstalledApplications", args);
//        }
    };
    module.exports = device;
});

})();